text/template/parse.item.val (field)
27 uses
text/template/parse (current package)
lex.go#L18: val string // The value of this item.
lex.go#L27: return i.val
lex.go#L29: return fmt.Sprintf("<%s>", i.val)
lex.go#L30: case len(i.val) > 10:
lex.go#L31: return fmt.Sprintf("%.10q...", i.val)
lex.go#L33: return fmt.Sprintf("%q", i.val)
lex.go#L285: if len(i.val) > 0 {
parse.go#L196: if strings.HasSuffix(token.val, " action") {
parse.go#L331: t.Name, err = strconv.Unquote(name.val)
parse.go#L370: return t.newText(token.pos, token.val)
parse.go#L376: return t.newComment(token.pos, token.val)
parse.go#L471: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L472: t.vars = append(t.vars, v.val)
parse.go#L473: case next.typ == itemChar && next.val == ",":
parse.go#L475: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L476: t.vars = append(t.vars, v.val)
parse.go#L675: s, err := strconv.Unquote(token.val)
parse.go#L733: chain.Add(t.next().val)
parse.go#L769: if checkFunc && !t.hasFunction(token.val) {
parse.go#L770: t.errorf("function %q not defined", token.val)
parse.go#L772: return NewIdentifier(token.val).SetTree(t).SetPos(token.pos)
parse.go#L778: return t.useVar(token.pos, token.val)
parse.go#L780: return t.newField(token.pos, token.val)
parse.go#L782: return t.newBool(token.pos, token.val == "true")
parse.go#L784: number, err := t.newNumber(token.pos, token.val, token.typ)
parse.go#L792: s, err := strconv.Unquote(token.val)
parse.go#L796: return t.newString(token.pos, token.val, s)